#pragma once

#include <QOpenGLWidget>
#include <QWidget>
#include <QLabel>
#include <QPainter>
#include <QPixmap>
#include <QFont>
#include <vector>
#include <QMouseEvent>


class ShowQLabel : public QOpenGLWidget
{
    Q_OBJECT

public:
    QString m_string_show;
    QImage m_image_show;
    QColor m_color;
    ShowQLabel(QWidget *parent);

    void loadtextimage(QImage image,QString string_show,QColor color);

    //重写paintEvent方法
    void paintEvent(QPaintEvent *e);

};
